import axios from '@/libs/request/axios'
// 获取车商列表接口
export const getCarDealList=(params)=>{
    return axios.request({
        url: 'apply/channel/getCarDealList',
        params: params,
        method: 'post'
    })
}
// 获取业务类型接口
export const getBusinessType = (params) => {
    return axios.request({
        url: 'apply/order/getBusinessParam',
        params: params,
        method: 'post'
    })
}
// 获取品牌的接口
export const getBrand = (params)  => {
    return axios.request({
        url: 'apply/vehicle/getBrandList',
        params: params,
        method: 'post'
    })
}
// 获取车型的接口
export const getModel=(params)=>{
    return axios.request({
        url: 'apply/vehicle/getModelList',
        params: params,
        method: 'post'
    })
}
// 获取款式的接口
export const getStyle=(params)=>{
    return axios.request({
        url: 'apply/vehicle/getStyleList',
        params: params,
        method: 'post'
    })
}
// 通过是svn获取资产信息
export const getVinCarInfo=(params)=>{
    return axios.request({
        url: 'apply/car/getVinCarInfo',
        params: params,
        method: 'post'
    })
}
// 获取订单信息
export const getOrderInfo=(params)=>{
    return axios.request({
        url: "apply/order/getOrderInfo",
        params: params,
        method: 'post'
    })
}
// 获取资产信息
export const getCarInfo=(params)=>{
    return axios.request({
        url: "apply/car/getCarInfo",
        params: params,
        method: 'post'
    })
}
// 获取挂靠信息
export const getAffiliatedInfo=(params)=>{
    return axios.request({
        url: "apply/order/getAffiliatedInfo",
        params: params,
        method: 'post'
    })
}
// 保存业务类型
export const saveOrderInfo=(params)=>{
    return axios.request({
        url: "apply/order/saveOrderInfo",
        data: params,
        method: 'post'
    })
}
// 更新业务类型
export const updateOrderInfo=(params)=>{
    return axios.request({
        url: "apply/order/updateOrderInfo",
        data: params,
        method: 'post'
    })
}
//保存资产信息
export const saveCarInfo=(params)=>{
    return axios.request({
        url: "apply/car/saveCarInfo",
        data: params,
        method: 'post'
    })
}
// 更新资产信息
export const updateCarInfo=(params)=>{
    return axios.request({
        url: "apply/car/updateCarInfo",
        data: params,
        method: 'post'
    })
}

// 保存挂靠信息
export const saveAffiliatedUnit=(params)=>{
    return axios.request({
        url: "apply/order/saveAffiliatedUnit",
        data: params,
        method: 'post'
    })
}
// 更新挂靠信息
export const updateAffiliatedUnit=(params)=>{
    return axios.request({
        url: "apply/order/updateAffiliatedUnit",
        data: params,
        method: 'post'
    })
}
// 查询挂靠公司列表
export const getAffiliatedUnitsList=(params)=>{
    return axios.request({
        url: "apply/channel/getAffiliatedUnitsList",
        params: params,
        method: 'post'
    })
}
// 查询网约车平台列表
export const getCooperPlatList=(params)=>{
    return axios.request({
        url: "apply/channel/getCooperPlatList",
        params: params,
        method: 'post'
    })
}
// 业务选择总保存接口
export const saveBusinessOption=(params)=>{
    return axios.request({
        url: "apply/order/saveBusinessOption",
        data: params,
        method: 'post'
    })
}

// 通过svn号查询挂牌车资产信息
export const getCapitalInfo=(params)=>{
    return axios.request({
        url: 'apply/car/getNameLib',
        data: params,
        method: 'post'
    })
}
// 当车商不存在时,调接口查询规定区域的省市范围
export const noDealerGetAddressList=(params)=>{
    return axios.request({
        url: 'admin/authRegion/getDeptAddressList',
        data: params,
        method: 'post'
    })
}

// 更新退回待办任务打开状态
export const updateBackTaskIsOpen=(params)=>{
    return axios.request({
        url: "apply/workflow/updateBackTaskIsOpen",
        data: params,
        method: 'post'
    })
}
// 资产信息的总保存保存
export const updateBodyContent=(params)=>{
    return axios.request({
        url: "apply/order/updateBodyContent",
        data: params,
        method: 'post'
    })
}
//获取评估价格
export const getValuationReport=(params)=>{
    return axios.request({
        url: "apply/car/getValuationReport",
        params: params,
        method: 'post'
    })
}

